import { App } from 'vue'
import Button from './button'
import Space from './space'

const globalComponents = [Button, Space]

const install = (app: App): void => {
  globalComponents.forEach((component) => {
    app.component(component.name, component)
  })
}
export { Button, Space }
export default install
